<?php

namespace App\Http\Controllers\supplier;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Cisco\Aliyunsms\Facades\Aliyunsms;
use App\Http\Controllers\SendmsController;
class SmsController extends Controller
{
    //发送登录短信验证码
    public static function sendSms($phone,$code,$signName,$templatecode)
    {
        $array = [
            'phoneNumbers'=>$phone,//手机号
            'signName'=>$signName,//签名名称
            'templatecode'=>$templatecode,//模板CODE
            'templateParam'=>$code,
        ];
        if (SendmsController::main($array) == 'ok')
        {
            return true;
        }
        return false;
    }

}
